package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品规格键
 * </p>
 *
 * @author Lbx
 * @since 2024-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdSpecKey对象", description="商品规格键")
public class JdSpecKey extends Model<JdSpecKey> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "分类id")
    private String classifyId;

    @ApiModelProperty(value = "规格组id")
    private String specGroupId;

    @ApiModelProperty(value = "规格名")
    private String specName;

    @ApiModelProperty(value = "规格限制类型（1单选 2多选 3手动输入）")
    private Integer specType;

    @ApiModelProperty(value = "显示位置")
    private Integer showPosition;

    private Integer searchFlag;

    @ApiModelProperty(value = "排序号码")
    private Integer orderNo;

    private String remark;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateUser;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
